# -*- coding: utf-8 -*-
"""
Create by donghp, 2017/12/09
"""
from __future__ import unicode_literals

from django.conf.urls import url
from django.contrib.auth import views as auth_views
from . import views as my_views

urlpatterns = [
    # 主页
    url(r'^$', my_views.home, name='home'),
    # 登录
    url(r'^login/$', auth_views.login, {'template_name': 'account/login.html'}, name='user_login'),
    # 注销
    url(r'^logout/$', auth_views.logout, {'template_name': 'account/logout.html'}, name='user_logout'),
    # 注册
    url(r'^register/$', my_views.register, name='user_register'),
    # 用户个人信息
    url(r'^myself/$', my_views.myself, name='myself'),
    # 编辑用户个人信息
    url(r'^myself_edit/$', my_views.myself_edit, name='myself_edit'),
]
